package org.library;

import org.library.domain.LoginUser;
import org.library.menu.Menu;

/**
 * @author Chen
 * @since 2023/6/13 15:10
 */
public class Library {

    private Menu menu;

    /**
     * 登录用户
     */
    private LoginUser loginUser;

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setMenu(Menu menu) {
        menu.setLibrary(this);
        this.menu = menu;
    }

    public void run() {
        menu.menu();
    }

}
